﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
using UnityEngine.UI;

public class UIEffects
{
    static UIEffects _instance;
    public UIEffects instance
    {
        get
        {
            if (_instance == null)
            {
                _instance = new UIEffects();
            }
            return _instance;
        }
    }

    public void ImgFade(Image image, float endValue, float duration, TweenCallback callback = null)
    {
        image.DOFade(endValue, duration).onComplete = callback;
    }

}
